package com.sbr.seb.wicket.provider;

import java.util.Iterator;
import java.util.List;

import org.apache.wicket.markup.repeater.data.IDataProvider;
import org.apache.wicket.model.IModel;

public class DataBaseProvider<E> implements IDataProvider<E> {

	private static final long serialVersionUID = 1L;
	private List<E> entityList;
	
	@Override
	public Iterator<? extends E> iterator(int first, int count) {
		return entityList.iterator();
	}

	@Override
	public IModel<E> model(E object) {
		return null;
	}

	@Override
	public int size() {
		return entityList.size();
	}

	@Override
	public void detach() {
		// TODO Auto-generated method stub
		
	}

}
